﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DomainDriver.DomainModeling.DomainObjects;

namespace DomainDriver.DomainModeling.Events
{
    public class AddDomainObjectEventArgs<KEY, KEYED_DOMAIN_OBJECT> : EventArgs
        where KEYED_DOMAIN_OBJECT : IKeyedDomainObject<KEY, KEYED_DOMAIN_OBJECT>
    {
        private KEYED_DOMAIN_OBJECT m_ObjectToAdd;

        public AddDomainObjectEventArgs(KEYED_DOMAIN_OBJECT objectToAdd)
            : base()
        {
            m_ObjectToAdd = objectToAdd;
        }

        public KEYED_DOMAIN_OBJECT ObjectToAdd
        {
            get { return m_ObjectToAdd; }
        }
    }
}